.class Les/ia$c;
.super Landroid/os/Handler;
.source "ImageProcessor.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/ia;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "c"
.end annotation


# instance fields
.field final synthetic a:Les/ia;


# direct methods
.method constructor <init>(Les/ia;Landroid/os/Looper;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/ia$c;->a:Les/ia;

    .line 2
    invoke-direct {p0, p2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 11

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_6

    if-eq v0, v2, :cond_2

    const/4 p1, 0x2

    if-eq v0, p1, :cond_0

    goto/16 :goto_2

    .line 2
    :cond_0
    iget-object p1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {p1}, Les/ia;->b(Les/ia;)Z

    move-result p1

    if-eqz p1, :cond_1

    return-void

    .line 3
    :cond_1
    iget-object p1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {p1}, Les/ia;->e(Les/ia;)V

    .line 4
    iget-object v0, p0, Les/ia$c;->a:Les/ia;

    monitor-enter v0

    .line 5
    :try_start_0
    iget-object p1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {p1, v2}, Les/ia;->a(Les/ia;Z)Z

    .line 6
    iget-object p1, p0, Les/ia$c;->a:Les/ia;

    invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V

    .line 7
    monitor-exit v0

    goto/16 :goto_2

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1

    .line 8
    :cond_2
    iget p1, p1, Landroid/os/Message;->arg1:I

    if-ne p1, v2, :cond_3

    const/4 p1, 0x1

    goto :goto_0

    :cond_3
    const/4 p1, 0x0

    :goto_0
    const-wide/16 v3, 0x0

    const v0, 0xf4240

    .line 9
    iget-object v5, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v5}, Les/ia;->g(Les/ia;)I

    move-result v5

    div-int/2addr v0, v5

    int-to-long v5, v0

    .line 10
    new-instance v0, Landroid/graphics/Rect;

    iget-object v7, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v7}, Les/ia;->h(Les/ia;)Les/ia$b;

    move-result-object v7

    iget v7, v7, Les/ia$b;->a:I

    iget-object v8, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v8}, Les/ia;->h(Les/ia;)Les/ia$b;

    move-result-object v8

    iget v8, v8, Les/ia$b;->b:I

    invoke-direct {v0, v1, v1, v7, v8}, Landroid/graphics/Rect;-><init>(IIII)V

    :cond_4
    :goto_1
    if-nez p1, :cond_5

    .line 11
    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1, v3, v4}, Les/ia;->a(Les/ia;J)J

    move-result-wide v7

    .line 12
    :try_start_1
    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1}, Les/ia;->i(Les/ia;)Les/ga;

    move-result-object v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1}, Les/ia;->j(Les/ia;)Lcom/esfile/screen/recorder/media/glutils/c;

    move-result-object v1

    if-eqz v1, :cond_4

    .line 13
    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1}, Les/ia;->k(Les/ia;)Landroid/view/Surface;

    move-result-object v1

    const/4 v9, 0x0

    invoke-virtual {v1, v9}, Landroid/view/Surface;->lockCanvas(Landroid/graphics/Rect;)Landroid/graphics/Canvas;

    move-result-object v1

    const/high16 v10, -0x1000000

    .line 14
    invoke-virtual {v1, v10}, Landroid/graphics/Canvas;->drawColor(I)V

    .line 15
    iget-object v10, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v10}, Les/ia;->l(Les/ia;)Landroid/graphics/Bitmap;

    move-result-object v10

    invoke-virtual {v1, v10, v9, v0, v9}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 16
    iget-object v9, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v9}, Les/ia;->k(Les/ia;)Landroid/view/Surface;

    move-result-object v9

    invoke-virtual {v9, v1}, Landroid/view/Surface;->unlockCanvasAndPost(Landroid/graphics/Canvas;)V

    .line 17
    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1}, Les/ia;->i(Les/ia;)Les/ga;

    move-result-object v1

    const-wide/16 v9, -0x1

    invoke-virtual {v1, v9, v10}, Lcom/esfile/screen/recorder/media/glutils/d;->a(J)V

    .line 18
    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1}, Les/ia;->i(Les/ia;)Les/ga;

    move-result-object v1

    invoke-virtual {v1, v7, v8}, Lcom/esfile/screen/recorder/media/glutils/d;->b(J)V

    .line 19
    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1}, Les/ia;->j(Les/ia;)Lcom/esfile/screen/recorder/media/glutils/c;

    move-result-object v1

    const-wide/16 v9, 0x3e8

    mul-long v7, v7, v9

    invoke-virtual {v1, v7, v8}, Lcom/esfile/screen/recorder/media/glutils/c;->a(J)V

    .line 20
    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1}, Les/ia;->j(Les/ia;)Lcom/esfile/screen/recorder/media/glutils/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/media/glutils/c;->c()Z

    .line 21
    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1}, Les/ia;->c(Les/ia;)Les/q7;

    move-result-object v1

    invoke-virtual {v1}, Les/q7;->u()V

    add-long/2addr v3, v5

    .line 22
    iget-object v1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v1}, Les/ia;->d(Les/ia;)J

    move-result-wide v7
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    cmp-long v1, v3, v7

    if-lez v1, :cond_4

    const/4 p1, 0x1

    goto :goto_1

    :catch_0
    move-exception v1

    .line 23
    iget-object v7, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v7, v1}, Les/ia;->a(Les/ia;Ljava/lang/Exception;)Z

    goto/16 :goto_1

    .line 24
    :cond_5
    iget-object p1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {p1}, Les/ia;->c(Les/ia;)Les/q7;

    move-result-object p1

    invoke-virtual {p1}, Les/q7;->C()Z

    goto :goto_2

    .line 25
    :cond_6
    iget-object p1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {p1}, Les/ia;->a(Les/ia;)Z

    move-result p1

    if-eqz p1, :cond_7

    .line 26
    iget-object p1, p0, Les/ia$c;->a:Les/ia;

    invoke-static {p1, v1}, Les/ia;->a(Les/ia;Z)Z

    .line 27
    :cond_7
    iget-object p1, p0, Les/ia$c;->a:Les/ia;

    monitor-enter p1

    .line 28
    :try_start_2
    iget-object v0, p0, Les/ia$c;->a:Les/ia;

    invoke-static {v0, v2}, Les/ia;->b(Les/ia;Z)Z

    .line 29
    iget-object v0, p0, Les/ia$c;->a:Les/ia;

    invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V

    .line 30
    monitor-exit p1

    :goto_2
    return-void

    :catchall_1
    move-exception v0

    monitor-exit p1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_4

    :goto_3
    throw v0

    :goto_4
    goto :goto_3
.end method
